﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmMant_SolicitudAtencion.aspx.cs" Inherits="WebExportaciones.frmMant_SolicitudAtencion" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">

        

        .label {
            font-family: ‘Lucida Sans Unicode’, ‘Lucida Grande’, sans-serif;
            font-size:11px;
            font-weight:bold;
            color:#6B6B6B;
        }
        input[type=text] {
            font-family: ‘Lucida Sans Unicode’, ‘Lucida Grande’, sans-serif;
            font-size:10px;
            color:#6B6B6B;
        }
        select {
            font-family: ‘Lucida Sans Unicode’, ‘Lucida Grande’, sans-serif;
            font-size:10px;
            color:#6B6B6B;
        }
        
        .btn_guardar
        {
            background-image: url(/imagenes/guardar.png);
            background-repeat: no-repeat;
            width:79px;
            height:29px;
            border:0;
            margin:0;
            padding:0;
        }
        .btn_cancelar
        {
            background-image: url(/imagenes/cancelar.png);
            background-repeat: no-repeat;
            width:82px;
            height:29px;
            border:0;
            margin:0;
            padding:0;
        }
        .btn_nuevo
        {
            background-image: url(/imagenes/nuevo.png);
            background-repeat: no-repeat;
            width:69px;
            height:29px;
            border:0;
            margin:0;
            padding:0;
        }
        

        .auto-style1 {
            width: 35%;
            height: 23px;
        }
        .auto-style2 {
            height: 23px;
        }
        .auto-style3 {
            width: 20%;
        }
    </style>
</head>
<body>
    <form id="Formulario" runat="server">
        <div id="divPantalla" runat="server">
            <table style="width: 1000px;">
                <tr>
                    <td colspan="2">
                        <div style="text-align: left; background-color: #FF9933; font-family: 'Open sans',sans-serif; color: #888888; font-size: x-large; font-weight: bold;">                            
                                Mantenimiento de Solicitud de Atencion                            
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td style="text-align:right" class="auto-style1">
                        <asp:Label ID="lblNumeroidSolicitud" CssClass="label" runat="server" Text="Código de Solicitud:"></asp:Label>
                    </td>
                    <td class="auto-style2">
                        <asp:TextBox ID="txtidSolicitud" runat="server" Width="50px"></asp:TextBox>
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 35%; text-align:right">
                        <asp:Label ID="lblDescrSolicitud" runat="server" CssClass="label" Text="Descripción de Solicitud:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDesReq" runat="server" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 35%; text-align:right" >
                        <asp:Label ID="lblNumeroidRequerimiento0" CssClass="label" runat="server" Text="Código del Requerimiento:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtidRequerimiento0" runat="server" Width="50px"></asp:TextBox>
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 35%; text-align:right" >
                        <asp:Label ID="lblEstadoSolicitud" runat="server" CssClass="label" Text="Estado:"></asp:Label>
                    </td>
                    <td>
                         <asp:DropDownList ID="ddlEstadoSolictud" runat="server" DataTextField="sDescripcion" DataValueField="idEstado" >                                                                                          
                                               <asp:ListItem Value="0">[Seleccione]</asp:ListItem>
                                               <asp:ListItem Value="1">Pendiente</asp:ListItem>
                                               <asp:ListItem Value="2">Atendida</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 35%; text-align:right" >
                        <asp:Label ID="lblFechaSolicitud" runat="server" CssClass="label" Text="Fecha de Solicitud:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtFechaSolicitud" runat="server" Width="80px"></asp:TextBox>
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 35%; text-align:right" >
                        <asp:Label ID="lblFechaPedido" runat="server" CssClass="label" Text="Fecha de Pedido:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtFechaPedido" runat="server" Width="80px"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td style="text-align:right" class="auto-style2">
                        <asp:Label ID="lblIdCliente" runat="server" CssClass="label" Text="Código de Cliente:"></asp:Label>
                    </td>
                    <td class="auto-style2">
                        <asp:TextBox ID="txtidCliente" runat="server" Width="100px" Enabled="false"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="width: 35%; text-align:right">
                        <asp:Label ID="lblRucCliente" runat="server" CssClass="label" Text="RUC de Cliente:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtRUC" runat="server" Width="100px"  Enabled="false"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="width: 35%; text-align:right">
                        <asp:Label ID="lblRazonSocial" runat="server" CssClass="label" Text="Razón Social del Cliente:"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtRazonSocial" runat="server" Width="300px"  Enabled="false"></asp:TextBox>
                    </td>
                </tr>
                
                <tr>
                    <td style="width: 35%; text-align:right">
                        <asp:Label ID="lblNumeroidDireccionEntrega" CssClass="label" runat="server" Text="Direccion de Entrega:"></asp:Label>
                    </td>                    
                    <td> 
                        <asp:DropDownList ID="ddlDireccionEntrega" runat="server" DataTextField="sdireccion" DataValueField="idDireccion"></asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="width: 35%; text-align:right">
                        <asp:Label ID="lblNumeroidDireccionCobranza" CssClass="label" runat="server" Text="Direccion de Cobranza:"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlDireccionCobranza" runat="server" DataTextField="sdireccion" DataValueField="idDireccion"></asp:DropDownList>
                    </td>                    
                </tr>
                <tr>
                    <td style="width: 35%; text-align:right">
                        <asp:Label ID="lblNumeroidDireccionFactura" CssClass="label" runat="server" Text="Direccion de Factura:"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlDireccionFactura" runat="server" DataTextField="sdireccion" DataValueField="idDireccion"></asp:DropDownList>
                    </td>                     
                </tr>

                <tr>
                    <td style="width: 35%; text-align:right">
                        <asp:Label ID="lblMontoTotal" CssClass="label" runat="server" Text="Monto Total:"></asp:Label>
                    </td>
                    <td>                        
                        <asp:TextBox ID="txtMontoTotal" runat="server" Width="100px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table style="width: 100%;">
                            <tr>
                                <td style="width: 30%;">&nbsp;</td>
                                <td style="width: 20%; text-align: center;">
                                    <asp:Button ID="btnGrabar" runat="server" CssClass="btn_guardar" OnClick="AccionGrabar" />
                                </td>
                                <td style="text-align: center;" class="auto-style3">
                                    <asp:Button ID="btnCancelar" runat="server"  CssClass="btn_cancelar" OnClick="AccionCancelar" />
                                </td>
                                <td style="width: 30%;">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 30%;">&nbsp;</td>
                                <td style="width: 20%; text-align: center;">
                                    &nbsp;</td>
                                <td style="text-align: center;" class="auto-style3">
                                    &nbsp;</td>
                                <td style="width: 30%;">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                 <asp:GridView ID="gvSolicitudDetalle" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                                       BackColor="#EEEEEE" BorderColor="#AAAAAA" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
                                       EnableViewState="False"
                                       Width="100%"  OnRowCommand="gvRequerimientoDetalle_RowCommand">
                                    <AlternatingRowStyle BackColor="#EEEEEE" />
                                    <Columns>
                                       <asp:TemplateField>
                                          <ItemStyle HorizontalAlign ="Center" Width="20px" />
                                          <ItemTemplate>
                                             <asp:CheckBox ID="chkSeleciona" runat="server" CommandArgument="<%#Container.DataItemIndex%>" />
                                          </ItemTemplate>
                                       </asp:TemplateField>
                                       <asp:BoundField DataField="idCodigoProducto" HeaderText="idCodigoProducto" SortExpression="idCodigoProducto">
                                          <HeaderStyle Wrap="False" />
                                          <ItemStyle HorizontalAlign ="Right" Wrap="False" />
                                       </asp:BoundField>
                                       <asp:BoundField DataField="descripcion" HeaderText="Descripcion" SortExpression="descripcion">
                                          <HeaderStyle Wrap="False" />
                                          <ItemStyle HorizontalAlign ="Right" Wrap="False" />
                                       </asp:BoundField>
                                       <asp:BoundField DataField="dPrecio" HeaderText="P. Unitario (S/.)" SortExpression="dPrecio">
                                          <HeaderStyle Wrap="False" />
                                          <ItemStyle HorizontalAlign ="Right" Wrap="False" />
                                       </asp:BoundField>
                                                                               <asp:BoundField DataField="dImpuesto" HeaderText="Impuesto" SortExpression="dImpuesto">
                                          <HeaderStyle Wrap="False" />
                                          <ItemStyle HorizontalAlign ="Right" Wrap="False" />
                                       </asp:BoundField>
                                       <asp:BoundField DataField="icantidadAtender" HeaderText="icantidadDemandada" SortExpression="icantidadAtender">
                                       </asp:BoundField>
                                        <asp:BoundField DataField="icantidadAtender" HeaderText="icantidadAtender" SortExpression="icantidadAtender">
                                        <HeaderStyle Wrap="False" />
                                        <ItemStyle HorizontalAlign="Right" Wrap="False" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="dTotal" HeaderText="Total" SortExpression="dTotal">
                                          <HeaderStyle Wrap="False" />
                                          <ItemStyle HorizontalAlign ="Right" Wrap="False" />
                                       </asp:BoundField>
                                    </Columns>
                                    <HeaderStyle BackColor="#AAAAAA" Font-Bold="True" ForeColor="Black" />
                                    <PagerSettings Visible="False" />
                                    <RowStyle BackColor="White" ForeColor="#000000" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                    <SortedAscendingCellStyle BackColor="#FFF1D4" />
                                    <SortedAscendingHeaderStyle BackColor="#B95C30" />
                                    <SortedDescendingCellStyle BackColor="#F1E5CE" />
                                    <SortedDescendingHeaderStyle BackColor="#93451F" />
                                 </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                 <table style="width:100%;">
                                    <tr>

                                       <td style="text-align: center;">
                                      
                                           &nbsp;</td>
                                       <td style="text-align: right; margin-right: 10px; color: #FF6600">
                                          Total de registros: <asp:Label ID="lblTotalRegistros" runat="server" Text="0"></asp:Label>&nbsp;
                                       </td>
                                    </tr>
                                 </table>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 30%;">&nbsp;</td>
                                <td style="width: 20%; text-align: center;">
                                    &nbsp;</td>
                                <td style="text-align: center;" class="auto-style3">
                                    &nbsp;</td>
                                <td style="width: 30%;">
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div id="divDetalle">
      </div>
    </form>
</body>
</html>
